package com.xuzimian.demo.java.proxy.dynamic.performance.handler

import javassist.util.proxy.MethodHandler
import java.lang.reflect.Method

class JavassistHandler(private val target: Any) : MethodHandler {
    @Throws(Throwable::class)
    override fun invoke(self: Any, thisMethod: Method, proceed: Method?, args: Array<Any>): Any {
        return thisMethod.invoke(target, *args)
    }

}